﻿using System;

namespace BLL.Services.Messages
{
    public class Messages
    {
        public int MessageId { get; set; }

        public DateTime? DateOfRead { get; set; }

        public DateTime DateOfSend { get; set; }

        public string Message { get; set; }

        public int RecipientId { get; set; }

        public int SenderId { get; set; }

        public string DateOfReadToString
        {
            get
            {
                return DateOfRead != null ? DateOfRead.Value.ToString() : string.Empty;
            }
        }

        public string DateOfSendToString
        {
            get
            {
                return DateOfSend.ToString();
            }
        }
    }
}
